package com.yytek.am.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yytek.common.core.annotation.Excel;
import com.yytek.common.core.web.domain.BaseEntity;

/**
 * 告警知识库对象 fm_alarm_map
 * 
 * @author yytek-iot
 * @date 2022-10-10
 */
@ApiModel("告警知识库对象")
public class FmAlarmMap extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @ApiModelProperty("id")
    private Long id;

    /** 关键指标名称 */
    @Excel(name = "关键指标名称")
    @ApiModelProperty("关键指标名称")
    private String kpiName;

    /** 告警标识 */
    @Excel(name = "告警标识")
    @ApiModelProperty("告警标识")
    private String alarmId;

    /** 1:业务告警；2：系统告警 */
    @Excel(name = "1:业务告警；2：系统告警")
    @ApiModelProperty("1:业务告警；2：系统告警")
    private Long alarmType;

    /** 描述 */
    @Excel(name = "描述")
    @ApiModelProperty("描述")
    private String alarmDesc;

    /** 可能原因 */
    @Excel(name = "可能原因")
    @ApiModelProperty("可能原因")
    private String reason;

    /** 解决办法 */
    @Excel(name = "解决办法")
    @ApiModelProperty("解决办法")
    private String solve;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setKpiName(String kpiName) 
    {
        this.kpiName = kpiName;
    }

    public String getKpiName() 
    {
        return kpiName;
    }
    public void setAlarmId(String alarmId) 
    {
        this.alarmId = alarmId;
    }

    public String getAlarmId() 
    {
        return alarmId;
    }
    public void setAlarmType(Long alarmType) 
    {
        this.alarmType = alarmType;
    }

    public Long getAlarmType() 
    {
        return alarmType;
    }
    public void setAlarmDesc(String alarmDesc) 
    {
        this.alarmDesc = alarmDesc;
    }

    public String getAlarmDesc() 
    {
        return alarmDesc;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setSolve(String solve) 
    {
        this.solve = solve;
    }

    public String getSolve() 
    {
        return solve;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("kpiName", getKpiName())
            .append("alarmId", getAlarmId())
            .append("alarmType", getAlarmType())
            .append("alarmDesc", getAlarmDesc())
            .append("reason", getReason())
            .append("solve", getSolve())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
